# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=ibus-anthy
pkgver=1.5.14
pkgrel=0
pkgdesc="Japanese input method Anthy IMEngine for IBus Framework"
url="https://github.com/ibus/ibus-anthy"
arch="all !s390x" # ibus needs librsvg which isn't available on s390x
license="GPL-2.0-only"
depends="ibus py3-gobject3 gtk-update-icon-cache"
makedepends="
	m4 automake autoconf intltool gobject-introspection
	gobject-introspection-dev ibus-dev anthy-dev
	py3-pytest
"
source="$pkgname-$pkgver.tar.gz::https://github.com/ibus/ibus-anthy/archive/$pkgver.tar.gz"
subpackages="$pkgname-lang"
options="!check" # Not sure how to run the test suite, undocumented

build() {
	./autogen.sh \
		--prefix=/usr \
		--libexec=/usr/lib/ibus
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
4d06d4e177df62d22c61bf6ebfda04ddbf545ea1947d0c315e3dfe5e48d9ddc57e5fcc89919ae3b9f7430e6124a5dfb1295f4ca7362fbc35714d627f80fae6d8  ibus-anthy-1.5.14.tar.gz
"
